package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_advert_position_schedule;

import cn.com.api.mapper.ApiU_advert_position_scheduleMapper;

import cn.com.api.service.ApiU_advert_position_scheduleService;

/**
 * 
 **/
@Service
public class U_advert_position_scheduleServiceImplBase {
	@Autowired
	private ApiU_advert_position_scheduleMapper apiU_advert_position_scheduleMapper;
    
    // 根据id获取
	public ApiU_advert_position_schedule findU_advert_position_scheduleById(Integer id){
		ApiU_advert_position_schedule u_advert_position_schedule = apiU_advert_position_scheduleMapper.findU_advert_position_scheduleById( id );
		return u_advert_position_schedule;
	}
    
    //查看数据集
	public List<ApiU_advert_position_schedule> findU_advert_position_schedules(){
        List<ApiU_advert_position_schedule> u_advert_position_schedules = apiU_advert_position_scheduleMapper.findU_advert_position_schedules();
		return u_advert_position_schedules;
    }
    
	// 添加
	public int insertU_advert_position_schedule(ApiU_advert_position_schedule u_advert_position_schedule){
		int ret_I= apiU_advert_position_scheduleMapper.insertU_advert_position_schedule(u_advert_position_schedule);
		return ret_I;
	}

	// 修改
	public int updateU_advert_position_schedule(ApiU_advert_position_schedule u_advert_position_schedule){
		int ret_I= apiU_advert_position_scheduleMapper.updateU_advert_position_schedule(u_advert_position_schedule);
		return ret_I;
	}
	
    // 删除
	public int deleteU_advert_position_schedule(Integer id){
		int ret_I= apiU_advert_position_scheduleMapper.deleteU_advert_position_schedule( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


